export default function (context, options) {
  return {
    name: 'devServer-plugin',
    configureWebpack(config, isServer, utils) {
      return {
        devServer: {
          proxy: {
            '/atomgit': {
              target: 'https://atomgit.com',
              changeOrigin: true,
              secure: false,
              pathRewrite: {
                '^/atomgit': '',
              },
            },
          }
        },
      };
    },
  };
}